package com.xaaef.jvm;

/**
 * <p>
 * </p>
 *
 * @author Wang Chen Chen<932560435@qq.com>
 * @date 2022/2/21 21:53
 */

public class StackFrameTest {

    public static void main(String[] args) {
        method1();
    }

    public static void method1() {
        System.out.println("method1() 正在执行....");
        int i = method2();
        System.out.printf("method1() 即将结束.... 结果 %d \n", i);
    }

    public static int method2() {
        System.out.println("method2() 正在执行....");
        double v = method3();
        int a = 5;
        System.out.println("method2() 即将结束....");
        return a + (int) v;
    }

    public static double method3() {
        System.out.println("method3() 正在执行....");
        double i = 10.0D;
        System.out.println("method3() 即将结束....");
        return i;
    }

}
